package basic_grammar

func Add(a, b int) int {
	return a + b
}

/*

func IntegerPowerofTwo(value int)bool{
	var remainder int
	for{
		remainder = value%2
		if remainder != 0{
			return false
		}
		value /= 2
		if value==1{
			return true
		}
	}
}
*/

func IntegerPowerofTwo(value int) bool {
	if value == 1 {
		return false
	}
	return value&(value-1) == 0
}
